<!DOCTYPE html>
<html>
<!--
Copyright 2011 The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.

-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Closure Unit Tests - goog.storage.CollectableStorage</title>
<script src="../base.js"></script>
<script>
  goog.require('goog.storage.collectableStorageTester');
  goog.require('goog.storage.CollectableStorage');
  goog.require('goog.storage.storage_test');
  goog.require('goog.testing.MockClock');
  goog.require('goog.testing.jsunit');
  goog.require('goog.testing.storage.FakeMechanism');
</script>
</head>
<body>
<script>

function testBasicOperations() {
  var mechanism = new goog.testing.storage.FakeMechanism();
  var storage = new goog.storage.CollectableStorage(mechanism);
  goog.storage.storage_test.runBasicTests(storage);
}

function testExpiredKeyCollection() {
  var mechanism = new goog.testing.storage.FakeMechanism();
  var clock = new goog.testing.MockClock(true);
  var storage = new goog.storage.CollectableStorage(mechanism);

  goog.storage.collectableStorageTester.runBasicTests(mechanism, clock,
                                                     storage);
}

</script>
</body>
</html>
